package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Cart;
import org.csu.mypetstore.domain.CartItem;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

@Repository
public interface CartMapper {
    Cart getCartByUsername(String username);

    void createCart(String username, BigDecimal listPrice);

    void createCartItem(CartItem cartItem);

    void updateCartItem(CartItem cartItem);

    void updateCart(BigDecimal subTotal, String username);

    void removeCartItem(String workingItemId, String username);

    void removeCart(String username);

    void removeCartItemAll(String username);

}
